<template>
    
  <div class="center" v-show="dxs">
      
      <el-form :model="ruleForm" status-icon  ref="ruleForm" label-width="100px" class="demo-ruleForm" >
  
  <el-form-item label="姓名" prop="username">
    <el-input type="text" v-model="ruleForm.username" autocomplete="off" style="width:300px"></el-input>
  </el-form-item>
  <el-form-item label="手机号" prop="phone">
    <el-input v-model.number="ruleForm.phone" style="width:300px"></el-input>
  </el-form-item>
  <el-form-item>
    <el-button>提交</el-button>
    <el-button @click="non" >取消</el-button>
  </el-form-item>
</el-form>
  </div>
</template>

<script>
export default {
     data() {
        
        return {
        ruleForm: {
          yesN: '',
          username: '',
          phone: ''
        },
        dxs:false
      }
    },
    
    methods: {
        non(){
         this.dxs = !this.dxs
      }
     }
    
    }
</script>

<style lang="scss" scoped>
    .center{
        z-index: 1200;
        position: fixed;
        top: 50%;
        left: 20%;
        background: lemonchiffon;
    }
</style>